/** @file myAllegro.h
  *
  * Naglowek klasy obslugi biblioteki Allegro.
  */

#ifndef MYALLEGRO_H_INCLUDED
#define MYALLEGRO_H_INCLUDED

#include <fstream>
#include <allegro.h>

#include "../func/const.h"

/** @class MyAllegro
  *
  * Klasa ulatwiajaca operacje graficzne i umieszczajaca je w jednym miejscu
  *
  */
class MyAllegro {
private:
  const unsigned int W, H;
  BITMAP *buffer;

public:

  MyAllegro(unsigned int w, unsigned int h);
  ~MyAllegro();

  void doubleBuffering();
  void drawCursor();

  BITMAP *getBuffer() {
    return buffer;
  }

  const int cRandom();

  const int cBlack() {
    return makecol(0,0,0);
  }
  const int cWhite() {
    return makecol(255, 255, 255);
  }
  const int cBlue() {
    return makecol(0,0,255);
  }
};

#endif // MYALLEGRO_H_INCLUDED
